Class TreeGroupedQueryable<TKey, TProps>

Assembly: redb.Core.dll

Tree-aware grouped queryable that preserves TreeQueryContext for proper CTE generation.
Uses ITreeQueryProvider.ExecuteTreeGroupedAggregateAsync for tree traversal.

public class TreeGroupedQueryable<TKey, TProps> : IRedbGroupedQueryable<TKey, TProps> where TProps : class, new()

Inheritance

ObjectTreeGroupedQueryable<TKey, TProps>

Implements

Methods

CountAsync()

Returns group count.

public Task<int> CountAsync()

SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>)

Executes projection with aggregations for each group.

public Task<List<TResult>> SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>> selector)

ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>)

Returns SQL string that will be executed for this GroupBy query.

public Task<string> ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>> selector)

WithWindow(Action<IGroupedWindowSpec<TKey, TProps>>)

Apply window functions to grouped results (tree-aware).

public IGroupedWindowedQueryable<TKey, TProps> WithWindow(Action<IGroupedWindowSpec<TKey, TProps>> windowConfig)

Constructors